<template>
  <div class="Aiassistant" v-if="isShow">
    <div class="close" @click="close"><i class="el-icon-close"></i></div>
    <div class="aiImg" @click="AIedit">
      <img :src="aiImg" alt="" title="" />
    </div>
    <DialogAiAssistant ref="dialogAiAssistant"/>
  </div>
</template>
<script>
import aiImg from '@/assets/aiassistant.png'
import DialogAiAssistant from '@/components/aiassistant/DialogAiAssistant.vue'
export default {
  created () {
  },
  data () {
    return {
      aiImg: aiImg,
      isShow: true
    }
  },
  methods: {
    AIedit () {
      this.$refs['dialogAiAssistant'].show()
    },
    close () {
      this.isShow = false
    }
  },
  components: {
    DialogAiAssistant
  }
}
</script>
<style scoped lang="scss">
.Aiassistant{
    position: fixed;
    bottom: 40px;
    right: 50px;
    z-index: 1000;
    .aiImg {
      cursor: pointer;
      img{
        height: 120px;
       }
    }
    .close{
        position: absolute;
        right:0;
        top:0;
        color: #fff;
        cursor: pointer;
    }
}
</style>
